﻿using System.Collections.Generic;
using static CommunicationProtocol.utils.PixelsLocationToColumnRowTransformer;

namespace CommunicationProtocol.dto.game

{
    public abstract class Field : BaseObject
    {
        public int xPixel;
        public int yPixel;

        public Field(short objectId, byte objectType, byte locationX, byte locationY) : base(objectId, objectType,
            locationX, locationY)
        {
            toPixels(locationX, locationY, out xPixel, out yPixel);
        }

        public abstract void plant(DynamicPlant newPlant);

        public abstract List<DynamicPlant> allPlants();
    }
}